package com.byxy.ssm.demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.byxy.ssm.demo.entity.Items;

public interface ItemsDao {

	@Insert("insert into items(introduction,img,name,price) values (#{introduction},#{img},#{name},#{price}) ")
	void save(Items item);

	@Select("select * from items")
	List<Items> find();

}
